﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;

public partial class AdminCMS_tab_DataSource_Del : System.Web.UI.Page
{

    protected void Page_Load(object sender, EventArgs e)
    {
        string[] sel = Request.Form.GetValues("check_class");
        if (sel != null && sel.Length != 0)
        {
            DataEntity.tab_DataSource t = new DataEntity.tab_DataSource();
            string ids = DataEntity.Common.UniteCondition(sel, "src_ID", false);
            int result = t.Delete(ids, null, null);

            new Cache_DataSource().Cache_delData(new ArrayList(sel));

            UIMethod.Alert("删除了 [" + result.ToString() + "] 条数据");
        }
        UIMethod.GoToURL("tab_DataSource_List.aspx", false);
    }
}
